package com.huang.controller;

import com.huang.pojo.UserL;
import com.huang.service.UserService;
import com.huang.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserLController {
@Autowired
    private UserService userService;

@GetMapping("/getUserList")
public SysResult getUserList(){

   List<UserL> list=userService.getUserList();
    return SysResult.success("用户数据获取成功",list);
}

}
